﻿<%@ Page Title="" Language="C#" MasterPageFile="~/teacher/teacher.Master" AutoEventWireup="true" CodeBehind="edit_assignment.aspx.cs" Inherits="RC1.teacher.edit_assignment" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 79px;
            vertical-align:top;
        }
        .style2
        {
            vertical-align:middle;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp1:ToolkitScriptManager>
    <h3>Broyt uppgávu</h3>
    <table cellpadding="5" style="width:100%;">
        <tr>
            <td class="style1">
                Navn</td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" Width="253px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="TextBox1"
                    runat="server" ErrorMessage="Navn er kravt" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Freist
            </td>
            <td class="style2">
                Dato :
                <asp:TextBox ID="TextBox3" runat="server" Width="89px"></asp:TextBox>
                <asp1:CalendarExtender ID="CalendarExtender1" TargetControlID="TextBox3" Format="dd/MM/yyyy" runat="server"></asp1:CalendarExtender>
                &nbsp;Kl:
                <asp:TextBox ID="TextBox4" runat="server" Width="28px" Text="12"></asp:TextBox>:
                <asp:TextBox ID="TextBox5" runat="server" Width="28px" Text="00"></asp:TextBox>:
                <asp:TextBox ID="TextBox6" runat="server" Width="28px" Text="00"></asp:TextBox>

                <asp:RangeValidator ID="RangeValidator1" runat="server" ErrorMessage="Tímar skulu vera millum 0 - 24" ControlToValidate="TextBox4" MinimumValue="0" MaximumValue="24" Type="Integer"></asp:RangeValidator>
                <asp:RangeValidator ID="RangeValidator2" runat="server" ErrorMessage="Min skulu vera millum 0 - 60" ControlToValidate="TextBox5" MinimumValue="0" MaximumValue="60" Type="Integer"></asp:RangeValidator>
                <asp:RangeValidator ID="RangeValidator3" runat="server" ErrorMessage="Sec skulu vera millum 0 - 60" ControlToValidate="TextBox6" MinimumValue="0" MaximumValue="60" Type="Integer"></asp:RangeValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="TextBox3" runat="server" ErrorMessage="Dato er kravdur" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="TextBox4" runat="server" ErrorMessage="Tímar eru kravdir" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="TextBox5" runat="server" ErrorMessage="Minuttir eru kravdir" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="TextBox6" runat="server" ErrorMessage="Sekund eru kravd" ForeColor="Red"></asp:RequiredFieldValidator>
                
                <asp1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="TextBox4" FilterType="Numbers" runat="server">
                </asp1:FilteredTextBoxExtender>
                <asp1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" TargetControlID="TextBox5" FilterType="Numbers" runat="server">
                </asp1:FilteredTextBoxExtender>
                <asp1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" TargetControlID="TextBox6" FilterType="Numbers" runat="server">
                </asp1:FilteredTextBoxExtender>
            </td>
        </tr>
        <tr>
            <td class="style1">
                Lýsing</td>
            <td>
                <asp:TextBox ID="TextBox2" runat="server" Height="206px" TextMode="MultiLine" 
                    Width="288px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="TextBox2"
                    runat="server" ErrorMessage="Lýsing er kravt" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Dagfør" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="Angra" CausesValidation="false" />
            </td>
        </tr>
    </table>
</asp:Content>
